# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-saml2
pkgver=7.1.2
pkgrel=1
pkgdesc="Pure python implementation of SAML2"
options="!check" # testsuite is failing
url="https://github.com/IdentityPython/pysaml2"
arch="noarch"
license="Apache-2.0"
depends="
	python3
	py3-cryptography
	py3-defusedxml
	py3-openssl
	py3-dateutil
	py3-tz
	py3-requests
	py3-six
	xmlsec
	"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/IdentityPython/pysaml2/archive/v$pkgver.tar.gz"
builddir="$srcdir/pysaml2-$pkgver"

# secfixes:
#   6.5.0-r0:
#     - CVE-2021-21238
#     - CVE-2021-21239

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
cf13ef0f74785bac357b2871f1ab521e60720cb236881fbc6c93d0eaca5323d198952392fa8a13850060a54757b1ff06a959e723bc7aeb5db9c8b2522b3c859b  py3-saml2-7.1.2.tar.gz
"
